import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { MemberCenterHomeComponent } from './member-center-home/member-center-home.component';
import { MemberCenterWithdrawalComponent } from './member-center-withdrawal/member-center-withdrawal.component';
import { MemberCenterTransferComponent } from './member-center-transfer/member-center-transfer.component';
import { MemberCenterMessageListComponent } from './member-center-message-list/member-center-message-list.component';
import { MessageDtlComponent } from './member-center-message-list/message-dtl/message-dtl';
import { MemberCenterAccountComponent } from './member-center-account/member-center-account.component';
import { MemberCenterSettingsComponent } from './member-center-account/settings/member-center-settings.component';
import { TransferDtlComponent } from './member-center-transfer/transfer-dtl/transfer-dtl';
import { EditPSWComponent } from './member-center-account/settings/edit-password/edit-psw/edit-psw.component';
import { EditJyPswComponent } from './member-center-account/settings/edit-password/edit-jy-psw/edit-jy-psw.component';
import { MemberCenterInfoComponent } from './member-center-account/info/member-center-info.component';
import { EditImgComponent } from './member-center-account/info/edit-img/edit-img.component';
import { YshtgListComponent } from './member-center-yshtg-list/member-center-yshtg-list.component';

const routes: Routes = [
    {
        path: '',
        children: [
            {
                path: '',
                redirectTo: 'home',
            },
            {
                path: 'home',
                component: MemberCenterHomeComponent,
                data: {
                    title: '医生中心',
                    translate: 'member-center.home'
                }
            }, {
                path: 'yaoshihome',
                component: MemberCenterInfoComponent,
                data: {
                    title: '药师中心',
                    translate: 'member-center.yaoshihome'
                }
            },
            {
                path: 'setdzcf',
                component: MemberCenterTransferComponent,
                data: {
                    title: '导入电子处方',
                    translate: 'setdzcf'
                }
            },
            {
                path: 'transactionListPage',
                component: MemberCenterMessageListComponent,
                data: {
                    title: '未审核处方',
                    translate: 'Message-List'
                }
            },
            {
                path: 'ysh',
                component: YshtgListComponent,
                data: {
                    title: '已审核处方',
                    translate: 'transactionListPage'
                }
            },
            {
                path: '**',
                redirectTo: 'getCash',
            },
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class MemberCenterRoutingModule { }
